﻿using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Text;
using OpenCVDemo.IService;

namespace OpenCVDemo.Service
{
    public static class OpenCVDemoServiceExtension
    {
        public static IServiceCollection AddServices(this IServiceCollection services, IConfiguration configuration)
        {
            //注入服务
            //services.AddScoped<IOpenCVService, EmguCVService>();
            services.AddScoped<IOpenCVService, OpenCVSharpService>();

            return services;
        }

    }
}
